<?php

namespace App\Sdks\Ali\Traits;

trait Sms
{
    /**
     * @param $phone
     * @param $signName
     * @param $templateCode
     * @param $templateParam
     * @return mixed
     * 发送短信
     */
    public function sendSms($phone, $signName, $templateCode, $templateParam){
        $param = [
            'RegionId' => self::RegionId,
            'PhoneNumbers' => $phone,
            'SignName' => $signName,
            'TemplateCode' => $templateCode,
            'TemplateParam' => $templateParam,
        ];

        return $this->publicRequest('SendSms', $param, 'POST');
    }
}
